// Package dto
// Title  user.dto.go
// Description  dto传参包装包
// Author  alittlexincan@163.com  2024/07/22 11:36
// Update  alittlexincan@163.com  2024/07/22 11:36
package dto

import "xincan.com.cn/tarot-go-framework/business/enum"

type CreateUserDto struct {

	// Name 用户名
	Name string `json:"name" label:"用户名" validate:"required,min=2,max=20" minLength:"2" maxLength:"20" example:"alittlexincan"`

	// Password 密码
	Password string `json:"password" label:"密码" validate:"required,min=6,max=20" minLength:"6" maxLength:"20" example:"123456"`

	// Role 用户角色
	Role string `json:"role" label:"用户角色" validate:"required,min=2,max=20" minLength:"2" maxLength:"20" example:"admin"`

	// Status 用户状态
	Status string `json:"status" label:"用户状态" validate:"required,min=2,max=20" enums:"UNKNOWN,READY,EXCEPTION" minLength:"2" maxLength:"20" example:"READY"`

	// Type 用户类型
	Type enum.UserEnum `json:"type" label:"用户类型" validate:"required,min=2,max=20" enums:"UNKNOWN,STUDENT,TEACHER" minLength:"2" maxLength:"20" example:"TEACHER"`
}

// SearchUserListDto
// Title  			SearchUserListDto
// Description   	集群节点传参结构体
// Auth      		alittlexincan@163.com         "时间（2024/07/22 11:36）"
// swagger:model SearchUserListDto
type SearchUserListDto struct {

	// Id 用户ID
	Id string `json:"id" label:"用户ID" validate:"omitempty,len=19,numeric" minLength:"19" maxLength:"19" example:"1142681887794270208"`
}
